package com.baidu.mobstat;

import android.content.Context;
import org.json.JSONArray;
import org.json.JSONObject;

class e
{
  private static e a = new e();
  private boolean b = false;

  public static e a()
  {
    return a;
  }

  public void a(Context paramContext)
  {
    com.baidu.mobstat.a.b.a("stat", "openExceptonAnalysis");
    if (this.b)
      return;
    this.b = true;
    a.a().a(paramContext);
  }

  public void b(Context paramContext)
  {
    if (paramContext == null)
    {
      com.baidu.mobstat.a.b.a("stat", "exceptonAnalysis, context=null");
      return;
    }
    JSONArray localJSONArray = a.a().b(paramContext);
    if (localJSONArray == null)
    {
      com.baidu.mobstat.a.b.a("stat", "no exception str");
      return;
    }
    com.baidu.mobstat.a.b.a("stat", "move exception cache to stat cache");
    int i = 0;
    while (true)
      try
      {
        if (i < localJSONArray.length());
        JSONObject localJSONObject = (JSONObject)localJSONArray.get(i);
        b.a().a(localJSONObject.getLong("t"), localJSONObject.getString("c"));
        b.a().b(paramContext);
        ++i;
      }
      catch (Exception localException)
      {
        com.baidu.mobstat.a.b.a("stat", localException);
      }
  }
}

/* Location:           C:\Users\god\Desktop\liunianjishiben_V1.1_mumayi_3745b_dex2jar.jar
 * Qualified Name:     com.baidu.mobstat.e
 * JD-Core Version:    0.5.4
 */